home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / PickMeUp.sit / Pick Me Up / source code / Movie app source / pickmeUp97 / source / CDefaultButtonWindow.cp next >
Text File  |  1997-06-20  |  1KB  |  53 lines

  1. /*
  2.       *    $Workfile: CDefaultButtonWindow.cp $
  3.     *    $Modtime: 6/20/97 5:51 PM $
  4.     *    $Revision: 2 $
  5.     *    $Date: 6/20/97 5:51 PM $
  6.     *    $History: CDefaultButtonWindow.cp $
  7.  * 
  8.  * *****************  Version 2  *****************
  9.  * User: jwoo         QDate: 6/20/97    Time: 5:51 PM
  10.  * Updated in $/ConMan/ConMan Interface Source/General Interface Classes/Generic
  11.  * June 20, 1997:  No code change here.  Just added the version control
  12.  * header.
  13.  
  14. */
  15.  
  16. #include "CDefaultButtonWindow.h"
  17.  
  18.  
  19.  
  20. CDefaultButtonWindow::CDefaultButtonWindow(LStream*  inStream) : LDialogBox(inStream)
  21. {
  22. }
  23.  
  24. CDefaultButtonWindow::~CDefaultButtonWindow()
  25. {
  26. }
  27.  
  28.  
  29. void
  30. CDefaultButtonWindow::SetDefaultButton(PaneIDT  inButtonID)
  31. {
  32.     mDefaultButtonID = inButtonID;
  33.     
  34.     if (mDefaultOutline != nil) {    // Remove former default outline
  35.         mDefaultOutline->Refresh();
  36.         delete mDefaultOutline;
  37.         mDefaultOutline = nil;
  38.     }
  39.     
  40.     LControl    *theButton = (LControl*) FindPaneByID(inButtonID);
  41.     if (theButton != nil) {
  42.                                     // Create new default outline
  43.         mDefaultOutline = new LDefaultOutline(theButton);
  44.         mDefaultOutline->Refresh();
  45.     }
  46. }
  47.  
  48.  
  49. void
  50. CDefaultButtonWindow::SetCancelButton(PaneIDT  inButtonID)
  51. {
  52.  
  53. }